//----------------------------------------------------------------------------------------
// @Project Includes
#include "includes.h"

//----------------------------------------------------------------------------------------
// @Local Macro Define in the module

//----------------------------------------------------------------------------------------
// @Local Type defines in the module

//----------------------------------------------------------------------------------------
// @Global Variables define in the module

//----------------------------------------------------------------------------------------
// @Prototypes of functions in the module

//========================================================================================
/*
 * @Functions:   void drv_jump_app(void)
 * @Description: 执行跳转动作
 * @Parameters:  NONE
 * @Return:      NONE
 */
void drv_jump_app(void)
{
    uint32_t JumpAddress;
    func_ptr_t JumpToApplication;
		__disable_irq();
    JumpAddress = *(__IO uint32_t *)(DEVICE_MAIN_APP_ADDR + 4);
    JumpToApplication = (func_ptr_t)JumpAddress;
    __set_MSP(*(__IO uint32_t *)DEVICE_MAIN_APP_ADDR);
    JumpToApplication();
#if 0
    /*系统复位*/	
    //__set_FAULTMASK(1);
    NVIC_SystemReset();
#endif
}


// =======================================================================================
// End of file.
// =======================================================================================
